package com.fhz.mvvmshopjava.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.fhz.mvvmshopjava.data.model.LoggedInUser;

import java.util.List;

/**
 * 时间:2022/5/31
 *
 * @author msfeng
 * 简述: TODO
 */
@Dao
public interface UserDao {

    @Insert
    void insertBanners(LoggedInUser... users); //代表可以输入一个数组.

    @Query("select * from user")
    List<LoggedInUser> getBanners();

}

